'use strict';
const db = uniCloud.database()
const coll = db.collection('timu')
exports.main = async (event, context) => {
	let res = await coll.count()
	let res1 = await coll.add(Object.assign(event, {
		index: (res.total + 1)
	}))
	console.log(res1)
	return res1
};
